projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
385fa71
)
When removing a file, also remove it from the file_lookup hash table
author
Federico Mena Quintero
<federico@novell.com>
Wed, 2 Sep 2009 20:21:45 +0000
(15:21 -0500)
committer
Benjamin Otte
<otte@gnome.org>
Thu, 15 Oct 2009 20:06:15 +0000
(22:06 +0200)
Signed-off-by: Federico Mena Quintero <federico@novell.com>
gtk/gtkfilesystemmodel.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilesystemmodel.c
b/gtk/gtkfilesystemmodel.c
index 69cd059b78731f752404ab0cc92468813a4a989c..1f830f0d00faa0da3413d7dd942d63c08383bf41 100644
(file)
--- a/
gtk/gtkfilesystemmodel.c
+++ b/
gtk/gtkfilesystemmodel.c
@@
-1610,10
+1610,15
@@
remove_file (GtkFileSystemModel *model,
node = get_node (model, id);
node_set_visible (model, id, FALSE);
+
+ g_hash_table_remove (model->file_lookup, file);
g_object_unref (node->file);
+
if (node->info)
g_object_unref (node->info);
+
g_array_remove_index (model->files, id);
+ /* FMQ: do we need to resort? */
}
/**